package com.hnevc.musicplayer;

public class Test {

	public static void main(String[] args) {
		//实例化音乐系统
		MusicSystem musicSystem = new MusicSystem();
		//初始化数据
		intitData(musicSystem);
		//显示音乐列表
		musicSystem.showMusic();
		//根据歌名获取音乐
		Music music = musicSystem.findMusic("带刺的玫瑰");
		//将音乐移动到底部
		musicSystem.shiftBottom(music);
		//显示音乐列表
		musicSystem.showMusic();
		
	}

	private static void intitData(MusicSystem musicSystem) {
		// TODO Auto-generated method stub
		Music music = new Music("张含韵","我的中国心","美声");
		musicSystem.musicList.add(music);
		music = new Music("理想","爱我中华","美声");
		musicSystem.musicList.add(music);
		music = new Music("那英","带刺的玫瑰","流行歌曲");
		musicSystem.musicList.add(music);
		music = new Music("张杰","忐忑","流行歌曲");
		musicSystem.musicList.add(music);
		music = new Music("谢娜","天下归一","流行歌曲");
		musicSystem.musicList.add(music);
		music = new Music("张杰","一个万个为什么","流行歌曲");
		musicSystem.musicList.add(music);
	}
}
